package com.rayc.controller;

import com.rayc.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ItemController {
    @Autowired
    private ItemService itemService;
    @GetMapping("/item")
    public String item(){
        System.out.println("开始减库存");
        itemService.update();
        return null;
    }
}
